<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>

</head>
<script src="http://libs.baidu.com/jquery/2.0.0/jquery.min.js"></script>
<body>

        wewfew
</body>
<script>
    var data = {
        "keyword":"wjk",
        "roleids":2
    }
    function getInfo(){
        $.ajax({
            type:"get",
            url:"192.168.0.146:8080/LIMS/sys/user/getList",
            dataType:"json",
            async:false,
            contentType:"application/json",
            data:JSON.stringify(data),
            success:function(data){
                alert(data);
                console.log(data);
            },error:function(data){
                alert("错误");
                console.log(data);
            }
    })
    }
    $(function(){
        getInfo();
    })
</script>

</html>